<?php
if(!defined('IN_DISCUZ')) exit('Access Denied');

global $_G;
$uid = $_G['uid'];
if(!$uid) {
    $data = [
        'success' => false,
        'message' => '请先登录'
    ];
    echo json_encode($data);
    exit;
}

$table_ad = C::t('#erling_grid_ad#ad');
$table_configs = C::t('#erling_grid_ad#configs');

$ad_list = $table_ad->fetch_all(1,50,['uid' => $uid]);
$ad_list = $ad_list['data'];
